<?php
session_start();
if(isset($_SESSION["login"]) && $_SESSION["login"]=="yes" )
{
?>
<html>
<link href="style.css" rel="stylesheet" type="text/css" />
<body onload="document.addform.ldname.focus()">
<h2 align="center">XYZ</h2>
<?php echo $_SESSION["username"]." : "; ?><a href="http://localhost/bs/">Home</a>
<?php
}
else
{
	$_SESSION["tresspass"]="yes";
	header("Location: http://localhost/bs/");
}
?>
